package com.pzhu.user.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.*;
import com.pzhu.base.common.utils.mybatisflex.BaseEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户角色关系表
 *
 * @TableName user_role
 */
@EqualsAndHashCode(callSuper = true)
@Table(value = "user_role")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserRole extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 角色id
     */
    private Long roleId;
}